﻿// <copyright file="EventLogFactory.cs" company="Microsoft Corporation">
// Copyright (c) 2009 Microsoft Corporation All Rights Reserved
// </copyright>
// <author>Michael S. Scherotter</author>
// <email>mischero@microsoft.com</email>
// <date>2009-11-27</date>
// <summary>EventLogFactory class definition</summary>

namespace Microsoft.WebAnalytics.Implementation
{
    using System.ComponentModel.Composition;
    using System.Diagnostics.CodeAnalysis;
    using Microsoft.WebAnalytics;

    /// <summary>
    /// Event log factory
    /// </summary>
    public class EventLogFactory
    {
        #region Properties
        /// <summary>
        /// Gets the Event Log
        /// </summary>
        [Export, 
        SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic", Justification = "Necessary for MEF Exporting.")]
        public EventLog EventLog
        {
            get
            {
                return new EventLog("Microsoft.Silverlight.Analytics.Framework.WebAnalyticsData.txt", Scope.Application);
            }
        }
        #endregion
    }
}
